﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Mytrip.Theme
{
    public static class MiscElements
    {
        public static string clear()
        {
            StringBuilder result = new StringBuilder();
            result.AppendLine("clear: both;");
            return result.ToString();
        }
        public static string error()
        {
            StringBuilder result = new StringBuilder();
            result.AppendLine("color:Red;");
            return result.ToString();
        }
        public static string field_validation_error()
        {
            StringBuilder result = new StringBuilder();
            result.AppendLine("color: #ff0000;");
            return result.ToString();
        }
        public static string field_validation_valid()
        {
            StringBuilder result = new StringBuilder();
            result.AppendLine("display: none;");
            return result.ToString();
        }
        public static string input_validation_error()
        {
            StringBuilder result = new StringBuilder();
            result.AppendLine("border: 1px solid #ff0000;");
            result.AppendLine("background-color: #ffeeee;");
            return result.ToString();
        }
        public static string captcha_validation_error()
        {
            StringBuilder result = new StringBuilder();
            result.AppendLine("border: 1px solid #ff0000;");
            result.AppendLine("background-color: #ffeeee;");
            return result.ToString();
        }
        public static string validation_summary_errors()
        {
            StringBuilder result = new StringBuilder();
            result.AppendLine("font-weight: bold;");
            result.AppendLine("color: #ff0000;");
            return result.ToString();
        }
        public static string validation_summary_valid()
        {
            StringBuilder result = new StringBuilder();
            result.AppendLine("display: none;");
            return result.ToString();
        }
        public static string label_field()
        {
            StringBuilder result = new StringBuilder();
            result.AppendLine("margin: 0.5em 0;");
            return result.ToString();
        }
        public static string text_box()
        {
            StringBuilder result = new StringBuilder();
            result.AppendLine("width: 30em;");
            return result.ToString();
        }
        public static string text_box_multi_line()
        {
            StringBuilder result = new StringBuilder();
            result.AppendLine("height: 6.5em;");
            return result.ToString();
        }
        public static string tri_state()
        {
            StringBuilder result = new StringBuilder();
            result.AppendLine("width: 6em;");
            return result.ToString();
        }
    }
}
